from pathlib import Path

import yaml

from . import utils
from .omc import read_omc
from .omc import rename_segments

_metadata_path = Path(__file__).parent.joinpath("metadata.yaml")
with open(_metadata_path) as file:
    _metadata = yaml.safe_load(file)


def load_timings(exp_id: str) -> dict[str, float]:
    return _metadata[exp_id]
